package com.tender.controller;

import com.tender.common.ActionResult;
import com.tender.dtos.IndexOrderPureDTO;
import com.tender.dtos.UnitCompositeInfoDTO;
import com.tender.model.BillAndShipVisitModel;
import com.tender.model.ExportIndexCondition;
import com.tender.page.PageDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.async.DeferredResult;

@RestController
@Tag(name = " 物流可视化首页-出口", description = "物流可视化首页-出口")
@RequestMapping("/api/visualization/export/index")
public class ExportIndexController {

    /**
     * 出口首页-数据查询
     * --------- 出口数据 ----------
     * 出口：提单号（JFHH24216YTDL20TK）
     * 出口：提单号（ONEYTA4PUS323500）
     * 时间范围：2024-11-01 ~ 2024-12-31
     */
    @PostMapping("/unit/page")
    @Operation(summary = "物流可视化首页-出口")
    public ActionResult<PageDTO<IndexOrderPureDTO>> exportInfoList(@Parameter(description = "物流可视化首页-出口-查询入参")
                                                                   @RequestBody ExportIndexCondition param) {
        return ActionResult.success();
    }

    @PostMapping("/bill/page")
    @Operation(summary = "物流可视化首页-进口-提单号嵌套首页")
    public ActionResult<PageDTO<UnitCompositeInfoDTO>> billPage(
            @Parameter(description = "物流可视化首页-进口-提单号嵌套首页")
            @RequestBody BillAndShipVisitModel param) {
        return ActionResult.success();
    }

}
